#daydayup.py
def dayup(df):
    dayup = 1
    for i in range(365):
        if i % 7 in [6,0]:
            dayup = dayup * (1 - df)
        else:
            dayup = dayup * (1 + df)
    return dayup
dyfactor = float(input("请输入不休息每日增长的数值"))
while dayup(dyfactor) < (1.01**365):
    dyfactor += 0.01
print(f"工作日的努力参数是：{dyfactor:.2f}")
